/* sequence grabber channel component type */
#define SeqGrabChannelType 'sgch'
/* device list structure flags */
#define sgDeviceListWithIcons (1) /* include icons */
#define sgDeviceListDontCheckAvailability (2) /* don't check available */
/* data function write operation types */
enum {
seqGrabWriteAppend, /* append to file */
seqGrabWriteReserve, /* reserve space in file */
seqGrabWriteFill /* fill reserved space */
};
/* flags for SGSetChannelPlayFlags and SGGetChannelPlayFlags functions */
#define channelPlayNormal 0 /* use default playback methodology */
#define channelPlayFast 1 /* achieve fast playback rate */
#define channelPlayHighQuality 2 /* achieve high-quality image */
#define channelPlayAllData 4 /* play all captured data */
/* usage flags for SGSetChannelUsage and SGGetChannelUsage functions */
enum {
seqGrabRecord = 1, /* used during record operations */
seqGrabPreview = 2, /* used during preview operations */
seqGrabPlayDuringRecord = 4 /* plays data during record operation */
};
typedef unsigned char SeqGrabUsageEnum;
/* SGGetChannelInfo function flags */
enum {
seqGrabHasBounds = 1, /* visual representation of data */
seqGrabHasVolume = 2, /* audio representation of data */
seqGrabHasDiscreteSamples = 4 /* data organized in discrete frames */
};
typedef unsigned char SeqGrabChannelInfoEnum;
/* basic sequence grabber channel component selectors */
kSGSetGWorldSelect = 0x4; /* SetGWorld */
kSGStartPreviewSelect = 0x10; /* SGStartPreview */
kSGStartRecordSelect = 0x11; /* SGStartRecord */
kSGIdleSelect = 0x12; /* SGIdle */
kSGStopSelect = 0x13; /* SGStop */
kSGPauseSelect = 0x14; /* SGPause */
kSGPrepareSelect = 0x15; /* SGPrepare */
kSGReleaseSelect = 0x16; /* SGRelease */
kSGUpdateSelect = 0x27; /* SGUpdate */
/* selectors for common channel configuration functions */
kSGCSetChannelUsageSelect = 0x80; /* SGSetChannelUsage */
kSGCGetChannelUsageSelect = 0x81; /* SGGetChannelUsage */
kSGCSetChannelBoundsSelect = 0x82; /* SGSetChannelBounds */
kSGCGetChannelBoundsSelect = 0x83; /* SGGetChannelBounds */
kSGCSetChannelVolumeSelect = 0x84; /* SGSetChannelVolume */
kSGCGetChannelVolumeSelect = 0x85; /* SGGetChannelVolume */
kSGCGetChannelInfoSelect = 0x86; /* SGGetChannelInfo */
kSGCSetChannelPlayFlagsSelect = 0x87; /* SGSetChannelPlayFlags */
kSGCGetChannelPlayFlagsSelect = 0x88; /* SGGetChannelPlayFlags */
kSGCSetChannelMaxFramesSelect = 0x89; /* SGSetChannelMaxFrames */
kSGCGetChannelMaxFramesSelect = 0x8A; /* SGGetChannelMaxFrames */
kSGCSetChannelRefConSelect = 0x8B; /* SGSetChannelRefCon */
kSGCSetChannelClipSelect = 0x8C; /* SGSetChannelClip */
kSGCGetChannelClipSelect = 0x8D; /* SGGetChannelClip */
kSGCGetChannelSampleDescriptionSelect = 0x8E;
/* SGCGetChannelSampleDescription */
kSGCGetChannelDeviceListSelect = 0x8F; /* SGCGetChannelDeviceList */
kSGCSetChannelDeviceSelect = 0x90; /* SGCSetChannelDevice */
kSGCSetChannelMatrixSelect = 0x91; /* SGCSetChannelMatrix */
kSGCGetChannelMatrixSelect = 0x92; /* SGCGetChannelMatrix */
kSGCGetChannelTimeScaleSelect = 0x93; /* SGCGetChannelTimeScale */
/* selectors for video channel configuration functions */
kSGCGetSrcVideoBoundsSelect = 0x100; /* SGCGetSrcVideoBounds */
kSGCSetVideoRectSelect = 0x101; /* SGCSetVideoRect */
kSGCGetVideoRectSelect = 0x102; /* SGCGetVideoRect */
kSGCGetVideoCompressorTypeSelect = 0x103; /* SGCGetVideoCompressorType */
kSGCSetVideoCompressorTypeSelect = 0x104; /* SGCSetVideoCompressorType */
kSGCSetVideoCompressorSelect = 0x105; /* SGCSetVideoCompressor */
kSGCGetVideoCompressorSelect = 0x106 ; /* SGCGetVideoCompressor */
kSGCGetVideoDigitizerComponentSelect = 0x107;
/* SGCGetVideoDigitizerComponent */
kSGCSetVideoDigitizerComponentSelect= 0x108;
/* SGCSetVideoDigitizerComponent */
kSGCVideoDigitizerChangedSelect = 0x109; /* SGCVideoDigitizerChanged */
kSGCSetVideoBottlenecksSelect = 0x10a; /* SGCSetVideoBottlenecks */
kSGCGetVideoBottlenecksSelect = 0x10b; /* SGCGetVideoBottlenecks */
kSGCGrabFrameSelect = 0x10c; /* SGCGrabFrame */
kSGCGrabFrameCompleteSelect = 0x10d; /* SGCGrabFrameComplete */
kSGCDisplayFrameSelect = 0x10e; /* SGCDisplayFrame */
kSGCCompressFrameSelect = 0x10f; /* SGCCompressFrame */
kSGCCompressFrameCompleteSelect = 0x110; /* SGCCompressFrameComplete */
kSGCAddFrameSelect = 0x111; /* SGCAddFrame */
kSGCTransferFrameForCompressSelect = 0x112;
/* SGCTransferFrameForCompress */
kSGCSetCompressBufferSelect = 0x113; /* SGCSetCompressBuffer */
kSGCGetCompressBufferSelect = 0x114; /* SGCGetCompressBuffer */
kSGCGetBufferInfoSelect = 0x115; /* SGCGetBufferInfo */
kSGCSetUseScreenBufferSelect = 0x116; /* SGCSetUseScreenBuffer */
kSGCGetUseScreenBufferSelect = 0x117; /* SGCGetUseScreenBuffer */
kSGCGrabCompressCompleteSelect = 0x118; /* SGCGrabCompressComplete */
kSGCDisplayCompressSelect = 0x119; /* SGCDisplayCompress */
kSGCSetFrameRateSelect = 0x11A; /* SGCSetFrameRate */
kSGCGetFrameRateSelect = 0x11B; /* SGCGetFrameRate */
/* selectors for sound channel configuration functions */
kSGCSetSoundInputDriverSelect = 0x100; /* SGCSetSoundInputDriver */
kSGCGetSoundInputDriverSelect = 0x101; /* SGCGetSoundInputDriver */
kSGCSoundInputDriverChangedSelect = 0x102; /* SGCSoundInputDriverChanged */
kSGCSetSoundRecordChunkSizeSelect = 0x103; /* SGCSetSoundRecordChunkSize */
kSGCGetSoundRecordChunkSizeSelect = 0x104; /* SGCGetSoundRecordChunkSize */
kSGCSetSoundInputRateSelect = 0x105; /* SGCSetSoundInputRate */
kSGCGetSoundInputRateSelect = 0x106; /* SGCGetSoundInputRate */
kSGCSetSoundInputParametersSelect = 0x107; /* SGCSetSoundInputParameters */
kSGCGetSoundInputParametersSelect = 0x108; /* SGCGetSoundInputParameters */
/* selectors for channel control functions */
kSGCInitChannelSelect = 0x180; /* SGCInitChannel */
kSGCWriteSamplesSelect = 0x181; /* SGCWriteSamples */
kSGCGetDataRateSelect = 0x182; /* SGCDataRate */
kSGCAlignChannelRectSelect = 0x183; /* SGAlignChannelRect */
};
/* values for pause parameter of SGPause function */
enum {
seqGrabUnpause = 0, /* restart the current operation */
seqGrabPause = 1, /* pause the current operation */
};